srcDir=/Users/chijin/Documents/DistributeProject/sourcecode2018-4-18f1/build
dstDir=/Users/chijin/Documents/DistributeProject/unity-distributed
dstPlaybackEngines="${dstDir}/PlaybackEngines"

rsync -a --delete "${srcDir}/MacEditor/" ${dstDir}
if [ ! -d ${dstPlaybackEngines} ]; then ( mkdir ${dstPlaybackEngines} ) fi
rsync -a --delete "${srcDir}/MacStandaloneSupport/" "${dstPlaybackEngines}/MacStandaloneSupport"
rsync -a --delete "${srcDir}/iOSSupport/" "${dstPlaybackEngines}/iOSSupport"
rsync -a --delete "${srcDir}/AndroidPlayer/" "${dstPlaybackEngines}/AndroidPlayer"